home *** CD-ROM | disk | FTP | other *** search
- Path: ptolemy-ethernet.arc.nasa.gov!pjl
- From: pjl@ptolemy-ethernet.arc.nasa.gov (Paul J. Lucas)
- Newsgroups: comp.lang.c++
- Subject: Re: Is it OK to delete const *type pointers?
- Date: 4 Apr 1996 01:17:39 GMT
- Organization: NASA Ames Research Center
- Message-ID: <4jv7vj$r6d@onramp.arc.nasa.gov>
- References: <4jhjub$fpc@mag1.magmacom.com>
- NNTP-Posting-Host: ptolemy-fddi1.arc.nasa.gov
- X-Newsreader: NN version 6.5.0 #11 (NOV)
-
- In <4jhjub$fpc@mag1.magmacom.com> ezust@mag1.magmacom.com (Acme Instant Dehydrated Boulder Kit) writes:
-
- >Some compilers let me do this, others do not. What I would like to know is,
- >what does Stroustrup think? I.e. is it written somewhere in the ARM (I checked
- >but can't find it) or in the draft standard? If somoene could e-mail me a
- >quote or a pointer to a place where I can read where it says such a thing
- >should or should not be allowed, I would appreciate it!
-
- ARM 5.3.4.
-
- You can't delete a pointer to const. Period. Any compiler
- that lets you do so is broken.
-
- >Is deleting an object technically considered changing that object's value?
-
- Yes: ARM 5.3.4.
-
- - Paul J. Lucas
- NASA Ames Research Center Caelum Research Corporation
- Moffett Field, California Mountain View, California
-